package com.example.shop_2211.roomnew

import android.app.Application
import androidx.room.Room

class RecordDBUtils {
    companion object{
        private lateinit var recordDB: RecordDB

        fun init(application: Application){
            recordDB = Room.databaseBuilder(application,RecordDB::class.java,"record.db")
                .allowMainThreadQueries()
                .build()
        }
        fun getDb() = recordDB
    }
}